package com.gw.quotes.util;

import java.text.SimpleDateFormat;
import java.util.Date;

public class DateUtil {
	public static String formatDate(String format, Date date) {
		try {
			SimpleDateFormat df = new SimpleDateFormat(format);// 设置日期格式
			return df.format(new Date());
		} catch (Exception e) {
			return null;
		}

	}
}
